/**
 * User: alesj
 * Date: 15.1.2006
 * Time: 15:05:55
 * 
 * (C) Genera Lynx d.o.o.
 */

package com.alesj.blueberry.spring.lotto.impl;

import com.alesj.blueberry.spring.lotto.JdbcDAO;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

/**
 * @author <a href="mailto:ales.justin@genera-lynx.com">Ales Justin</a>
 */
public class JdbcDAOImpl extends JdbcDaoSupport implements JdbcDAO {

    private String idleQuery;

    public boolean findIsIdle(long timestamp) throws DataAccessException {
        return false;
//        return !getJdbcTemplate().queryForList(idleQuery).isEmpty();
    }

    public void setIdleQuery(String idleQuery) {
        this.idleQuery = idleQuery;
    }

}
